convert char[] to String in btrace

Posted by usovmv on Stack Overflow See other posts from Stack Overflow or by usovmv
Published on 2010-06-16T16:15:34Z Indexed on 2010/06/16 16:32 UTC
Read the original article Hit count: 114

Filed under:
|
|
|

Hi folks! I'm profiling application with btrace (https://btrace.dev.java.net) and faced with limitation. I try to get a name of current java.lang.Thread. Normaly you can call getName() but it's forbidden in btrace-scripts (any calls exception BTraceUtils). Is there any idea how to get String from char[].

The original task is check if name of thread contains sub-string and only then log out tracing info (reducing output).

thanks, Max.

© Stack Overflow or respective owner

Related posts about java

Related posts about debugging